﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Xml.Serialization;

namespace Microsoft.ResourceManagement.Client.WsTransfer
{
    public class ResourceLocaleProperty
    {
        public ResourceLocaleProperty()
            : this(CultureInfo.CurrentCulture)
        {
        }

        public ResourceLocaleProperty(CultureInfo value)
        {
            this.value = value;
        }
        private CultureInfo value;

        public String Value
        {
            get
            {
                return this.value.ToString();
            }
            set
            {
                if (value != null)
                {
                    this.value = CultureInfo.GetCultureInfo(value);
                }
            }
        }
    }
}
